package com.coin.exchanges.view.user.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.coin.exchanges.R
import com.coin.exchanges.view.user.bean.PersonFlowData

class PersonFlowAdapter (layoutResId: Int, val list: MutableList<PersonFlowData>) :
        BaseQuickAdapter<PersonFlowData, BaseViewHolder>(layoutResId, list) {
    override fun convert(helper: BaseViewHolder, item: PersonFlowData?) {
        if (helper != null) {
            if (item != null) {
                helper.setText(R.id.mItemFlowCountTv, item.Money.toString())
                helper.setText(R.id.mItemStatusCountTv, item.Operate)
                helper.setText(R.id.mItemOperateCountTv, item.Content)
                helper.setText(R.id.mItemTimeCountTv, item.Date)
            }
        }
    }

}
